package tp.pr2;

public class Food extends tp.pr2.ExpirationItem
{
	private int health;

	public Food(String name, String description, int health, int times)
	{
		super(name, description, times);
		this.health = health;
	}

	public Food(java.lang.String name, java.lang.String description, int health)
	{
		super(name, description, 1);
		this.health = health;
	}

	public boolean use(Player who, Room where)
	{
		if (!this.canBeUsed())
			return false;
		System.out.println("Something changes ...");
		who.addHealth(this.health);
		this.decrement();
		return true;

	}

}
